package com.itcast.n1_内存调优;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: jvm
 * @description: -Xms1g -Xmx1g
 * @author: flyduck
 * @create: 2024-10-16 17:44
 **/
@RestController
@RequestMapping("/leak2")
public class Test16_内存泄漏问题5_并发请求导致内存溢出 {

    @GetMapping("/test1")
    public void test1() throws InterruptedException {
        byte[] bytes = new byte[1024 * 1024 * 100];//100m
        Thread.sleep(10 * 1000L);
    }
}
